package org.ws.task.zookeeper;

import org.ws.task.model.NodeMetadata;

import java.util.Collection;
import java.util.Map;

public interface ZkDataManager {

    String getNamespace();

    NodeMetadata getLeaderDataNode() throws Exception;

    Collection<Map<String,Object>> getLeaderNodes() throws Exception;

    Collection<NodeMetadata> getWorkerNodes();

}
